//
//  RJPhotoImageView.h
//  Muses
//
//  Created by hzyd-wlj on 14/11/17.
//  Copyright (c) 2014年 yodo. All rights reserved.
//

#define KPlaceholderImage [UIImage imageNamed:@"默认加载图片"]

#import <UIKit/UIKit.h>
@class RJPhoto;
@class SDWebImageDownloaderOperation;
@protocol RJPhotoViewDelegate;

@interface RJPhotoImageView : UIView<UIScrollViewDelegate>
{
    @private
    UIActivityIndicatorView *_activityView;

    BOOL _loading;
    SDWebImageDownloaderOperation *_downloaderOperation;
}
/**
 *  Scale是否已改变，默认为NO；
 */
@property(nonatomic, assign) BOOL isScaleChanged;
@property(nonatomic, weak) id<RJPhotoViewDelegate> delegate;
@property(nonatomic, strong) RJPhoto *photo;
@property(nonatomic, readonly) UIImageView *imageView;
@property(nonatomic, strong) UIScrollView *scrollView;
@property(nonatomic, assign,getter=isLoading) BOOL loading;

- (void)resetImageViewScale:(float)scale Center:(CGPoint)center;
@end

@protocol RJPhotoViewDelegate <NSObject>

@optional
- (void)photoViewDidSingleTap:(RJPhotoImageView *)photoView;
@end